if(document.cookie.length > 0){
    $(function () {
        $.ajax({
            url:"../../../front/php/init.php",
            data: {},
            dataType:"json",
            type:"GET",
            success:function (d) {
                var username = "<div>"+d[0].name+"</div><div>"+d[0].phonenum+"</div>"
                $(".user_name").html(username)
            }
        })
    })

} else {
//  window.location.href = "login.html";
}